<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>test</title>
    <script src="/assets/js/jquery.min.js"></script>
    <SCRIPT type="text/javascript">
        var jss = ['/assets/js/jquery-extend.js']
        for (var i = 0; i < jss.length; i++) {
            document.write('<script src="' + jss[i] + '?license=' + new Date().getTime() + '"><' + "/" + 'script>');
        }
    </SCRIPT>


    <script type="text/javascript">
        //,testUserList: [{userName:'fpx'}, {userName:'wbl'},{userName:'lb'}]
        $(function () {

            $("input[type='button']").on("click", function (sender, e) {
                alert('ok');
                //var d=new Date('2017-11-31,');
                //console.log(d);
                //console.log(d.Format('yyyy-MM-dd HH:mm:ss'));
                /*var myDate = new Date();
                 console.log(myDate.getYear());        //获取当前年份(2位)
                 console.log(myDate.getFullYear());    //获取完整的年份(4位,1970-????)
                 console.log(myDate.getMonth());       //获取当前月份(0-11,0代表1月)
                 console.log(myDate.getDate());        //获取当前日(1-31)
                 console.log(myDate.getDay());         //获取当前星期X(0-6,0代表星期天)
                 console.log(myDate.getTime());        //获取当前时间(从1970.1.1开始的毫秒数)
                 console.log(myDate.getHours());       //获取当前小时数(0-23)
                 console.log(myDate.getMinutes());     //获取当前分钟数(0-59)
                 console.log(myDate.getSeconds());     //获取当前秒数(0-59)
                 console.log(myDate.getMilliseconds());    //获取当前毫秒数(0-999)
                 console.log(myDate.toLocaleDateString());     //获取当前日期
                 console.log(myDate.toLocaleTimeString());     //获取当前时间
                 console.log(myDate.toLocaleString());*/

                /*console.log(new Date().dateDiff('y','2017-05-07'));
                 console.log(new Date().dateDiff('q','2017-5-7'));
                 console.log(new Date().dateDiff('M','2017-5-7'));
                 console.log(new Date().dateDiff('w','2017-5-7'));
                 console.log(new Date().dateDiff('d','2017-5-7'));
                 console.log(new Date().dateDiff('h','2017-5-7'));
                 console.log(new Date().dateDiff('m','2017-5-7'));
                 console.log(new Date().dateDiff('s','2017-5-7'));*/


                //console.log(new Date().toString(true));

                //console.log(Date.StringToDate('2017-11-30').format('yyyy-MM-dd hh:mm:ss'));

                var d=new Date('2013/11/01 01');
                console.log(d.format('yyyy-MM-dd hh:mm:ss'));

                //console.log(new Date().datePart('ww'));
                //var entity=JSON.stringify({orgName:'richfit',testUsers:
                //  [{userName:'fpx'}, {userName:'wbl'},{userName:'lb'}]});
                //var entity=JSON.stringify({userName:'fpx',testOrg:{orgName:'richfit'}});
                /*$.ajax({
                 url: 'test/user.read',
                 //data:entity,
                 type: 'get',
                 dataType: 'json',
                 contentType: 'application/json;charset=utf-8', //设置请求头信息
                 success: function (response) {
                 debugger;
                 alert("操作成功");
                 },
                 error: function (msg) {
                 debugger;
                 alert('操作失败');
                 }
                 })*/
                /* function finish() {
                 alert('finish');
                 }


                 $.ajax({
                 type: "post",
                 async: false,
                 url: "org/test",
                 success: function (responseText) {
                 alert('success');
                 },
                 error: function (msg) {
                 alert('error');
                 }
                 /!*dataType: "jsonp",
                 jsonp: "callback",
                 //传递给请求处理程序或页面的，用以获得jsonp回调函数名的参数名(一般默认为:callback)
                 jsonpCallback: "finish",*!/
                 //自定义的jsonp回调函数名称，默认为jQuery自动生成的随机函数名，也可以写"?"，jQuery会自动为你处理数据

                 })*/

            })
        })
    </script>
</head>
<body>
<form>
    <input type="button" value="test">
</form>

</body>
</html>